import  re
str5 = 'one two three      four     five'
print(''.join(str5.split()))
print(re.sub('\s+','',str5.strip()))